package com.bosssoft.oss.service;

import com.aliyun.oss.OSSClient;
import com.bosssoft.oss.pojo.FileUpAndDown;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.OutputStream;

public interface ThreadService {
    /***
     *
     * @param multipartFiles 需要上传的文件
     * @return
     */
    FileUpAndDown upload(MultipartFile[] multipartFiles);

    /***
     *
     * @param ossClient oss链接
     * @param objectName 下载文件名称
     * @throws IOException
     */
    void download(OSSClient ossClient, String objectName, String path) throws IOException, Exception;

    /***
     *
     * @param fileName 输出文件路径
     * @return
     */
    String getFilePath(String fileName);
}
